
<script setup>
import { reactive } from 'vue';

let items =reactive([
      {
        id:'item1',
        message:"薯片"
      },
      {
        id:'item2',
        message:"可乐"
      }
    ])
</script>

<template>
    <div>
        <ul>
            <li v-for="item in items" :key="item.id">{{ item.message }}</li>
        </ul>
    </div>
  
</template>


<style>

</style>